import request from "@/request/request.js";

export function getCartsInfoByUserId(userid){
    return request({
        url:'/carts/getCartsInfoByUserId',
        params: {userid}
    })
}

export function deleteCartsById(id){
    return request({
        method:'delete',
        url:'/carts/deleteCartsById',
        params: {id}
    })
}

export function addCarts(carts){
    return request({
        method:'put',
        url:'/carts/addCarts',
        data:carts
    })
}
